package com.ktgj.flight.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.flight.mapper.CommdefMapper;
import com.ktgj.flight.domain.Commdef;
import com.ktgj.flight.service.ICommdefService;

/**
 * 航信接口的航线Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-08-30
 */
@Service
public class CommdefServiceImpl implements ICommdefService 
{
    @Autowired
    private CommdefMapper commdefMapper;

    /**
     * 查询航信接口的航线
     * 
     * @param commdefId 航信接口的航线ID
     * @return 航信接口的航线
     */
    @Override
    public Commdef selectCommdefById(Long commdefId)
    {
        return commdefMapper.selectCommdefById(commdefId);
    }

    /**
     * 查询航信接口的航线列表
     * 
     * @param commdef 航信接口的航线
     * @return 航信接口的航线
     */
    @Override
    public List<Commdef> selectCommdefList(Commdef commdef)
    {
        return commdefMapper.selectCommdefList(commdef);
    }

    /**
     * 新增航信接口的航线
     * 
     * @param commdef 航信接口的航线
     * @return 结果
     */
    @Override
    public int insertCommdef(Commdef commdef)
    {
        return commdefMapper.insertCommdef(commdef);
    }

    /**
     * 修改航信接口的航线
     * 
     * @param commdef 航信接口的航线
     * @return 结果
     */
    @Override
    public int updateCommdef(Commdef commdef)
    {
        return commdefMapper.updateCommdef(commdef);
    }

    /**
     * 批量删除航信接口的航线
     * 
     * @param commdefIds 需要删除的航信接口的航线ID
     * @return 结果
     */
    @Override
    public int deleteCommdefByIds(Long[] commdefIds)
    {
        return commdefMapper.deleteCommdefByIds(commdefIds);
    }

    /**
     * 删除航信接口的航线信息
     * 
     * @param commdefId 航信接口的航线ID
     * @return 结果
     */
    @Override
    public int deleteCommdefById(Long commdefId)
    {
        return commdefMapper.deleteCommdefById(commdefId);
    }
}
